Ksh Read a File Line By Line ( UNIX Scripting ) - nixCraft 20 Nov 2009 ... How do I read a file line by line using KSH shell scripting under UNIX like operating systems? You can use the while loop and read command ...
UNIX: Read a File Line By Line - nixCraft 26 Jan 2011 ... Explains how to read a file line by line under UNIX / Mac OS X ... bin/ksh file="/ home/vivek/data.txt" while read line do # display $line or do ...
reading a file line by line in ksh - Stack Overflow echo "var1" | while read line; do autosys_showJobHistory.sh $line | grep ... Recall that ksh doesn't support .. as an indicator for 'expand this ...
Reading file line by line (with space) in Unix Shell scripting - Issue ... I tried with "while read line" but read command is removing space .... ksh: shell script to search for a string in all files present in a directory at a ...
shell - skip lines while reading text files from ksh - Stack Overflow You can do for example this (read.sh): #!/bin/ksh while read line do [[ $line = \#* ]] && continue echo $line done < read.sh ...
KSH script BASICS Read Input from User and from Files. Read in a Variable. From a user we read with: read var. Then the users ...
shell - Why the behavior of while loop and for loop is different ... 27 Nov 2012 ... I am trying to read user and server details from file tempo.txt and then check the ... usr/bin/ksh while read line do r1=`echo $line | cut -d"#" -f1`; ...
Read from a file and call KSH in loop | Unix Linux Forums | Shell ... bin/ksh while IFS='|' read f1 f2 f3 junk do /mdm/bin/load_script.ksh -a ... If it's just the two you showed, then the second line might be missing a ...
read a file line by line in ksh | Unix Linux Forums | Shell ... Hi, In ksh we use 'while read line' statement to read a file line by line. In my input file I have 5 spaces appended at the end of each line. When I ...
What's the Korn shell command to read a file one line at a time. - Unix 6 May 2010 ... Try redirecting the file as input to a while loop: #!/bin/ksh -xv cd /borders/home/ entsys/tmp while read file do echo "The file to get next is " $file